home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / ppc-amigaos / include / powerup / ppclib / ppc.i < prev    next >
Text File  |  2000-02-28  |  2KB  |  101 lines

  1.     IFND POWERUP_PPCLIB_PPC_I
  2. POWERUP_PPCLIB_PPC_I    SET    1
  3.  
  4. ;/* PPCGetInfo() Tags */
  5.  
  6. PPCINFOTAG_Dummy    =    (TAG_USER+$1f000)
  7.  
  8. ;/* Version of the CPU
  9. ; * (Get)
  10. ; */
  11. PPCINFOTAG_CPU        =    (PPCINFOTAG_Dummy+$1)
  12.  
  13. ;/* CPU Count
  14. ; * (Get)
  15. ; */
  16. PPCINFOTAG_CPUCOUNT    =    (PPCINFOTAG_Dummy+$2)
  17.  
  18. ;/* Clock of the CPU
  19. ; * (Get)
  20. ; */
  21. PPCINFOTAG_CPUCLOCK    =    (PPCINFOTAG_Dummy+$3)
  22.  
  23. ;/* Revision of the CPU
  24. ; * (Get)
  25. ; */
  26. PPCINFOTAG_CPUREV    =    (PPCINFOTAG_Dummy+$4)
  27.  
  28. ;/* Default ExceptionHook
  29. ; * If you want to install an ExceptionHook
  30. ; * to catch all exceptions by a debugger for example
  31. ; * (Get/Set)
  32. ; */
  33. ; */
  34. PPCINFOTAG_EXCEPTIONHOOK=    (PPCINFOTAG_Dummy+$5)
  35.  
  36. ;/* Add PPCCreateTask Hook (V45)
  37. ; * If you want to be notified when a new PPC Task
  38. ; * is created. Usable for a debugger or a Task Viewer.
  39. ; *
  40. ; * BOOL CallHookPkt(DeleteTaskHook, MyTaskObject, TaskHookMsg);
  41. ; *
  42. ; * If you want to install a new TrapHandler you can do it
  43. ; * now in your Hook function. Or tell the Task to stop at the
  44. ; * first instruction.
  45. ; * The PPC Task is initiated after all Hook functions complete.
  46. ; * The result defines if potential hooks should not be called.
  47. ; * If you return TRUE no other hooks are called.
  48. ; * (Set)
  49. ; */
  50. PPCINFOTAG_TASKHOOK=    (PPCINFOTAG_Dummy+$6)
  51.  
  52. ;/* Remove a TaskHook (V45)
  53. ; * (Set)
  54. ; */
  55. PPCINFOTAG_REMTASKHOOK=    (PPCINFOTAG_Dummy+$7)
  56.  
  57. ;/* PLL Devider of the CPU (V45)
  58. ; * (Get)
  59. ; */
  60. PPCINFOTAG_CPUPLL    =    (PPCINFOTAG_Dummy+$8)
  61.  
  62.  
  63.     STRUCTURE    TaskHookMsg_Create,0
  64.     ULONG        mc_MethodID
  65.     ULONG        mc_Version
  66.     APTR        mc_ElfObject
  67.     APTR        mc_Tags
  68.     LABEL        TaskHookMsg_Create_SIZEOF
  69.  
  70.     STRUCTURE    TaskHookMsg_Delete,0
  71.     ULONG        md_MethodID
  72.     ULONG        md_Version
  73.     LABEL        TaskHookMsg_Delete_SIZEOF
  74.  
  75.     STRUCTURE    TaskHookMsg_Get,0
  76.     ULONG        mg_MethodID
  77.     ULONG        mg_Version
  78.     APTR        mg_Tags
  79.     LABEL        TaskHookMsg_Get_SIZEOF
  80.  
  81.     STRUCTURE    TaskHookMsg_Set,0
  82.     ULONG        ms_MethodID
  83.     ULONG        ms_Version
  84.     APTR        ms_Tags
  85.     LABEL        TaskHookMsg_Set_SIZEOF
  86.  
  87. PPCTASKHOOKMETHOD_CREATE    =    0
  88. PPCTASKHOOKMETHOD_DELETE    =    1
  89. PPCTASKHOOKMETHOD_GET        =    2
  90. PPCTASKHOOKMETHOD_SET        =    3
  91.  
  92. ;/* Current known PowerPC CPU versions */
  93. CPU_603        =    3
  94. CPU_604        =    4
  95. CPU_602        =    5
  96. CPU_603e    =    6
  97. CPU_603p    =    7
  98. CPU_604e    =    9
  99.  
  100.     ENDC
  101.